<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>5_1-页面输出</title>
	</head>
	<body>
		<div id="output"></div>
		<script type="text/javascript">
		  var name = prompt("请输入你的姓名", "姓名");
		    document.getElementById('output').innerHTML = "你输入的姓名是" + name;
		</script>
	</body>
</html>